//
//  HTImageClipViewController.h
//  TruckUser
//
//  Created by Ting Han on 2017/11/27.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "BaseViewController.h"
@class HTImageClipViewController;
@protocol HTImageClipViewControllerDelegate <NSObject>

- (void)imageCropper:(HTImageClipViewController *)clipViewController didFinished:(UIImage *)editedImage;
- (void)imageCropperDidCancel:(HTImageClipViewController *)clipViewController;

@end

@interface HTImageClipViewController : BaseViewController

@property (nonatomic, assign) NSInteger tag;
@property (nonatomic, weak) id<HTImageClipViewControllerDelegate> delegate;
@property (nonatomic, assign) CGRect cropFrame;

- (instancetype)initWithImage:(UIImage *)originalImage cropFrame:(CGRect)cropFrame limitScaleRatio:(NSInteger)limitRatio;

@end
